Smartling\Helpers\GutenbergBlockHelper C

Total Complexity 113
Dependencies 24
Dependents 6
Total lines 602
Lines of code 446
Logical lines of code 269
Comment lines 37
Methods 29
Properties 5

Methods 29

Method Rating Maintainability Complexity Lines of code
sortChildNodesContent()
A
47 8 39
applyDownloadRules()
A
48 8 28
getAttributeValue()
A
53 8 22
isPossibleJson()
S
57 7 16
replacePreTranslateBlockContent()
S
52 6 23
processTranslation()
S
55 6 20
renderGutenbergBlock()
S
54 6 19
applyPostTranslationReplacers()
S
53 5 21
replaceAttributes()
S
54 5 20
loadExternalDependencies()
S
57 5 16
placeBlock()
S
50 4 29
fixAttributeTypes()
S
61 5 12
register()
S
56 4 18
replacePostTranslateBlockContent()
S
57 4 16
replacePostTranslationAttributes()
S
59 4 15
processAttributes()
S
57 3 17
renderTranslatedBlockNode()
S
57 3 16
processString()
S
59 3 14
parseBlocks()
S
61 3 12
processTranslationChunks()
S
62 3 11
registerFilters()
S
60 2 15
processTranslationAttributes()
S
61 2 12
setAttributeValue()
S
68 2 7
getJson()
S
65 2 8
getPostContentBlocks()
S
80 1 3
unpackData()
S
80 1 3
packData()
S
80 1 3
hasBlocks()
S
78 1 3
__construct()
S
67 1 8